package com.archive.forum.exception;
//异常定义枚举类
public enum ExceptionEnum implements BaseErrorInfoInterface {
    SUCCESS("2000","操作成功"),
    ERROR("2001","操作失败"),
    SYS_ERROR("2002","系统异常"),
    NOT_LOGIN("2003","用户未登录，请登录重试"),
    TYPE_PARAM_ERROR("2004","类型错误或不存在"),
    TARGET_PARAM_NOT_FOUND("2005","未选中任何问题或评论"),
    CONTENT_IS_EMPTY("2006","内容不能为空"),
    READ_NOTIFICATION_FAIL("2007","非法读取消息"),
    DELETE_FAIL("2008","非法删除操作"),
    DELETE_ERROR("2009","删除失败"),
    USER_FAIL("2010","非法访问用户操作"),
    EDIT_ERROR("2011","非法编辑操作"),
    UNDEFINE_ERROR("2012","未定义操作错误"),
    USER_ERROR("4001","用户信息错误"),
    USER_NOT_FOUND("4001","用户不存在"),
    NOTIFICATION_NOT_FOUND("4002","消息不存在"),
    COMMENT_NOT_FOUND("4003","评论不存在"),
    POST_NOT_FOUND("4004","未找到该资源"),;
    private final String resultCode;
    private final String resultMsg;

     ExceptionEnum(String resultCode, String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg= resultMsg;
    }


    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
